package com.timguan.render.api.api.backend;

import com.timguan.render.api.entity.cms.CMSPage;
import com.timguan.render.api.entity.cms.CMSRoute;
import net.pocrd.entity.ServiceException;

/**
 * 获取页面路由信息
 * Created by guankaiqiang on 2015/3/22.
 */
public interface CMSRouteService {
    /**
     * 入口
     */
    enum AccessPlatform {
        PC_RENDER,
        H5_RENDER,
        APP_APIGW;
    }

    /**
     * @param accessPlatform
     * @param srcUri
     * @param srcActivityId
     * @param appId
     * @param appVersion
     * @throws ServiceException
     */
    public CMSPage getCmsPage(AccessPlatform accessPlatform, String srcUri, int srcActivityId, int appId, String appVersion)
            throws ServiceException;

    public CMSPage getCmsPage(AccessPlatform accessPlatform, String srcUri, int srcActivityId, int appId, String appVersion, String group)
            throws ServiceException;

    public CMSRoute getRoute(String srcUri, int srcActivityId, int appId, String appVersion, String group) throws ServiceException;
}
